package stringbuilder;

public class DeleteDemo {
    public static void main(String[] args) {
        String str="好好学习java,是为了改变世界";

        StringBuilder builder=new StringBuilder(str);

        builder.delete(0,9);
        System.out.println(builder);
        /**
         * delete():删除部分内容（含头不含尾）
         */
    }
}
